package jiekou.eg2;

public class Test {
    public static void main(String[] args){
        MyMath mm=new MyMath(3,5);
        mm.sum(new MyRun(){
            @Override
            public void show(int s) {
                System.out.println("和为："+s);
            }
        });
           MyMath mm2=new MyMath(17,35);
           mm2.sum(new MyRun() {
               @Override
               public void show(int s) {
                   System.out.println("sum is "+s);
               }
           });
        }
    }

